/*
 * @Author: NaturalHulk 2066634567@qq.com
 * @Date: 2024-10-08 09:31:44
 * @LastEditors: NaturalHulk 2066634567@qq.com
 * @LastEditTime: 2024-11-07 16:44:43
 * @FilePath: /xhs-mom-new/src/api/order/sale/sample.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
// 列表
export function GetListAPI(params) {
  return request({
    url: '/order/sample-management/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/order/sample-management/add',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/order/sample-management/update',
    method: 'POST',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/order/sample-management/delete/' + data,
    method: 'DELETE'
  })
}

// 查看详情
export function GetDetailAPI(data) {
  return request({
    url: '/order/sample-management/view/' + data,
    method: 'GET'
  })
}

// 提交评审
export function SubmitReviewAPI(data) {
  return request({
    url: '/order/sample-management/submitReview',
    method: 'POST',
    data
  })
}

// 撤销审核
export function DeleteReviewAPI(data) {
  return request({
    url: '/order/sample-management/deleteReview/' + data,
    method: 'GET'
  })
}

// 审核
export function ToExamineAPI(data) {
  return request({
    url: '/order/sample-management/sampleReview',
    method: 'POST',
    data
  })
}
